<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
<title>有趣的命令</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2011-07-23 12:45:50 CST"/>
<meta name="author" content="Hu Wenbiao"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<style type="text/css">
 <!--/*--><![CDATA[/*><!--*/
  html { font-family: Times, serif; font-size: 12pt; }
  .title  { text-align: center; }
  .todo   { color: red; }
  .done   { color: green; }
  .tag    { background-color: #add8e6; font-weight:normal }
  .target { }
  .timestamp { color: #bebebe; }
  .timestamp-kwd { color: #5f9ea0; }
  p.verse { margin-left: 3% }
  pre {
	border: 1pt solid #AEBDCC;
	background-color: #F3F5F7;
	padding: 5pt;
	font-family: courier, monospace;
        font-size: 90%;
        overflow:auto;
  }
  table { border-collapse: collapse; }
  td, th { vertical-align: top; }
  dt { font-weight: bold; }
  div.figure { padding: 0.5em; }
  div.figure p { text-align: center; }
  .linenr { font-size:smaller }
  .code-highlighted {background-color:#ffff00;}
  .org-info-js_info-navigation { border-style:none; }
  #org-info-js_console-label { font-size:10px; font-weight:bold;
                               white-space:nowrap; }
  .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
                                 font-weight:bold; }
  /*]]>*/-->
</style><link rel="stylesheet" href="/home/huwenbiao/note/Publish/style/emacs.css" type="text/css"/>
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
 function CodeHighlightOn(elem, id)
 {
   var target = document.getElementById(id);
   if(null != target) {
     elem.cacheClassElem = elem.className;
     elem.cacheClassTarget = target.className;
     target.className = "code-highlighted";
     elem.className   = "code-highlighted";
   }
 }
 function CodeHighlightOff(elem, id)
 {
   var target = document.getElementById(id);
   if(elem.cacheClassElem)
     elem.className = elem.cacheClassElem;
   if(elem.cacheClassTarget)
     target.className = elem.cacheClassTarget;
 }
/*]]>*///-->
</script>
</head>
<body>
<div id="content">
<div id="org-div-home-and-up" style="text-align:right;font-size:70%;white-space:nowrap;">
 <a accesskey="h" href="index.html"> UP </a>
 |
 <a accesskey="H" href="index.html"> HOME </a>
</div>

<h1 class="title">有趣的命令</h1>


<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 figlet </a></li>
<li><a href="#sec-2">2 import </a>
<ul>
<li><a href="#sec-2.1">2.1 区域截屏 </a></li>
</ul>
</li>
<li><a href="#sec-3">3 cal </a></li>
<li><a href="#sec-4">4 calc </a></li>
<li><a href="#sec-5">5 sl </a></li>
<li><a href="#sec-6">6 语音软件 </a></li>
<li><a href="#sec-7">7 将两个mp3拼起来 </a></li>
</ul>
</div>
</div>

<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> figlet </h2>
<div class="outline-text-2" id="text-1">

<p>将字母用一些其他字母画出。
如
</p>


<pre class="src src-sh">figlet Gnu/Emacs
</pre>



<p>
产生ascii图片如下:
</p>


<pre class="src src-ascii">  ____                _______                          
 / ___|_ __  _   _   / / ____|_ __ ___   __ _  ___ ___ 
| |  _| '_ \| | | | / /|  _| | '_ ` _ \ / _` |/ __/ __|
| |_| | | | | |_| |/ / | |___| | | | | | (_| | (__\__ \
 \____|_| |_|\__,_/_/  |_____|_| |_| |_|\__,_|\___|___/
                                                       
</pre>



<p>
这个软件的用法比较多，可以加很多参数。其中-f可以指定字体。如：
</p>



<pre class="src src-ascii"> figlet -f script open_source                                                     
 __    _   _   _  _    ,   __          ,_    __   _  
/  \_|/ \_|/  / |/ |  / \_/  \_|   |  /  |  /    |/  
\__/ |__/ |__/  |  |_/ \/ \__/  \_/|_/   |_/\___/|__/
    /|                                               
    \|                                               

</pre>







<pre class="src src-ascii">figlet open_source -f ivrit
                                                                             
                    ___  ___ _ __ _   _  ___  ___     _ __   ___ _ __   ___  
                   / _ \/ __| '__| | | |/ _ \/ __|   | '_ \ / _ \ '_ \ / _ \ 
                  |  __/ (__| |  | |_| | (_) \__ \   | | | |  __/ |_) | (_) |
                   \___|\___|_|   \__,_|\___/|___/___|_| |_|\___| .__/ \___/ 
                                                |_____|         |_|          
</pre>




<pre class="src src-ascii">figlet open_source -f shadow
                                                        
  _ \  __ \   _ \ __ \    __|  _ \  |   |  __| __|  _ \ 
 (   | |   |  __/ |   | \__ \ (   | |   | |   (     __/ 
\___/  .__/ \___|_|  _| ____/\___/ \__,_|_|  \___|\___| 
      _|             _____|                             

</pre>





<pre class="src src-ascii">figlet open_source -f digital
+-+-+-+-+-+-+-+-+-+-+-+
|o|p|e|n|_|s|o|u|r|c|e|
+-+-+-+-+-+-+-+-+-+-+-+

</pre>




<pre class="src src-ascii">figlet open_source -f slant
                                                             
  ____  ____  ___  ____       _________  __  _______________ 
 / __ \/ __ \/ _ \/ __ \     / ___/ __ \/ / / / ___/ ___/ _ \
/ /_/ / /_/ /  __/ / / /    (__  ) /_/ / /_/ / /  / /__/  __/
\____/ .___/\___/_/ /_/____/____/\____/\__,_/_/   \___/\___/ 
    /_/              /_____/                                 

</pre>





<pre class="src src-ascii">figlet open_source -f bubble
  _   _   _   _   _   _   _   _   _   _   _  
 / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ 
( o | p | e | n | _ | s | o | u | r | c | e )
 \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ 

</pre>





<pre class="src src-ascii"> figlet open source -f block
                                        
                                        
  _|_|    _|_|_|      _|_|    _|_|_|    
_|    _|  _|    _|  _|_|_|_|  _|    _|  
_|    _|  _|    _|  _|        _|    _|  
  _|_|    _|_|_|      _|_|_|  _|    _|  
          _|                            
          _|                            
                                                            
                                                            
  _|_|_|    _|_|    _|    _|  _|  _|_|    _|_|_|    _|_|    
_|_|      _|    _|  _|    _|  _|_|      _|        _|_|_|_|  
    _|_|  _|    _|  _|    _|  _|        _|        _|        
_|_|_|      _|_|      _|_|_|  _|          _|_|_|    _|_|_|  
                                                            

</pre>





<pre class="src src-ascii"> figlet open source -f lean
                                          
                                          
    _/_/    _/_/_/      _/_/    _/_/_/    
 _/    _/  _/    _/  _/_/_/_/  _/    _/   
_/    _/  _/    _/  _/        _/    _/    
 _/_/    _/_/_/      _/_/_/  _/    _/     
        _/                                
       _/                                 
                                                               
                                                               
     _/_/_/    _/_/    _/    _/  _/  _/_/    _/_/_/    _/_/    
  _/_/      _/    _/  _/    _/  _/_/      _/        _/_/_/_/   
     _/_/  _/    _/  _/    _/  _/        _/        _/          
_/_/_/      _/_/      _/_/_/  _/          _/_/_/    _/_/_/     
                                                             
</pre>




<pre class="src src-ascii">figlet open_source -f banner
                                                                              
 ####  #####  ###### #    #          ####   ####  #    # #####   ####  ###### 
#    # #    # #      ##   #         #      #    # #    # #    # #    # #      
#    # #    # #####  # #  #          ####  #    # #    # #    # #      #####  
#    # #####  #      #  # #              # #    # #    # #####  #      #      
#    # #      #      #   ##         #    # #    # #    # #   #  #    # #      
 ####  #      ###### #    #          ####   ####   ####  #    #  ####  ###### 
                            #######                                           
</pre>




</div>

</div>

<div id="outline-container-2" class="outline-2">
<h2 id="sec-2"><span class="section-number-2">2</span> import </h2>
<div class="outline-text-2" id="text-2">


</div>

<div id="outline-container-2.1" class="outline-3">
<h3 id="sec-2.1"><span class="section-number-3">2.1</span> 区域截屏 </h3>
<div class="outline-text-3" id="text-2.1">




<pre class="src src-sh">import &#8211;frame myScreenShot.png
</pre>




</div>
</div>

</div>

<div id="outline-container-3" class="outline-2">
<h2 id="sec-3"><span class="section-number-2">3</span> cal </h2>
<div class="outline-text-2" id="text-3">

<p>一个日历。
</p>


<pre class="src src-ascii">cal
      &#19971;&#26376; 2011
&#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085; 
             1  2  3
 4  5  6  7  8  9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31


</pre>





<pre class="src src-sh">cal 1889
                             1889

         &#19968;&#26376;                    &#20108;&#26376;                    &#19977;&#26376;
&#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085;  &#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085;  &#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085; 
    1  2  3  4  5  6               1  2  3               1  2  3
 7  8  9 10 11 12 13   4  5  6  7  8  9 10   4  5  6  7  8  9 10
14 15 16 17 18 19 20  11 12 13 14 15 16 17  11 12 13 14 15 16 17
21 22 23 24 25 26 27  18 19 20 21 22 23 24  18 19 20 21 22 23 24
28 29 30 31           25 26 27 28           25 26 27 28 29 30 31
                                            
         &#22235;&#26376;                    &#20116;&#26376;                    &#20845;&#26376;
&#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085;  &#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085;  &#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085; 
 1  2  3  4  5  6  7         1  2  3  4  5                  1  2
 8  9 10 11 12 13 14   6  7  8  9 10 11 12   3  4  5  6  7  8  9
15 16 17 18 19 20 21  13 14 15 16 17 18 19  10 11 12 13 14 15 16
22 23 24 25 26 27 28  20 21 22 23 24 25 26  17 18 19 20 21 22 23
29 30                 27 28 29 30 31        24 25 26 27 28 29 30
                                            
         &#19971;&#26376;                    &#20843;&#26376;                    &#20061;&#26376;
&#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085;  &#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085;  &#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085; 
 1  2  3  4  5  6  7            1  2  3  4                     1
 8  9 10 11 12 13 14   5  6  7  8  9 10 11   2  3  4  5  6  7  8
15 16 17 18 19 20 21  12 13 14 15 16 17 18   9 10 11 12 13 14 15
22 23 24 25 26 27 28  19 20 21 22 23 24 25  16 17 18 19 20 21 22
29 30 31              26 27 28 29 30 31     23 24 25 26 27 28 29
                                            30
         &#21313;&#26376;                   &#21313;&#19968;&#26376;                   &#21313;&#20108;&#26376;
&#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085;  &#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085;  &#19968; &#20108; &#19977; &#22235; &#20116; &#20845; &#26085; 
    1  2  3  4  5  6               1  2  3                     1
 7  8  9 10 11 12 13   4  5  6  7  8  9 10   2  3  4  5  6  7  8
14 15 16 17 18 19 20  11 12 13 14 15 16 17   9 10 11 12 13 14 15
21 22 23 24 25 26 27  18 19 20 21 22 23 24  16 17 18 19 20 21 22
28 29 30 31           25 26 27 28 29 30     23 24 25 26 27 28 29
                                            30 31

</pre>




</div>

</div>

<div id="outline-container-4" class="outline-2">
<h2 id="sec-4"><span class="section-number-2">4</span> calc </h2>
<div class="outline-text-2" id="text-4">

<p>一个计算器。
</p>


<pre class="src src-ascii">calc 64!
        126886932185884164103433389335161480802865516174545192198801894375214704230400000000000000

</pre>



</div>

</div>

<div id="outline-container-5" class="outline-2">
<h2 id="sec-5"><span class="section-number-2">5</span> sl </h2>
<div class="outline-text-2" id="text-5">

<p>这个命令是当ls打错的时候提示安装sl，于是发现是有这个命令的。安装之后，再将ls错打成sl就会有一辆火车驶过。作者说这个命令是提示用户命令打错了，sl的意思是steam locomotive。它还有几个参数可以用：
</p><table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption></caption>
<colgroup><col align="left" /><col align="left" />
</colgroup>
<thead>
<tr><th scope="col">参数</th><th scope="col">意义</th></tr>
</thead>
<tbody>
<tr><td>-a</td><td>出事故的火车，有人求救</td></tr>
</tbody>
<tbody>
<tr><td>-l</td><td>一个小型火车</td></tr>
</tbody>
<tbody>
<tr><td>-F</td><td>飞起的火车</td></tr>
</tbody>
<tbody>
<tr><td>-e</td><td>可以用Ctrl+C中止的火车</td></tr>
</tbody>
</table>

<div class="figure">
<p><img src="sl-help.png"  alt="sl-help.png" /></p>
<p>Help</p>
</div>

</div>

</div>

<div id="outline-container-6" class="outline-2">
<h2 id="sec-6"><span class="section-number-2">6</span> 语音软件 </h2>
<div class="outline-text-2" id="text-6">

</div>

</div>

<div id="outline-container-7" class="outline-2">
<h2 id="sec-7"><span class="section-number-2">7</span> 将两个mp3拼起来 </h2>
<div class="outline-text-2" id="text-7">




<pre class="src src-sh">cat 1.mp3 2.mp3 &gt; combined.mp3
</pre>



</div>
</div>
<div id="postamble">
<p class="author"> Author: Hu Wenbiao
<a href="mailto:linuxacm@gmail.com">&lt;linuxacm@gmail.com&gt;</a>
</p>
<p class="date"> Date: 2011-07-23 12:45:50 CST</p>
<p class="creator">HTML generated by org-mode 6.33x in emacs 23</p>
</div>
</div>
</body>
</html>
